package com.beans;

import com.enums.Enums;

public class MemberInfo {
    private int id;
    private String memberNo;
    private String memberName;
    private String password;
    private String phone;
    private String email;
    private String registerDate;
    private String idCard;
    private int loginCounts;
    private String lastLoginDate;
    private String ip;
    private Enums.EnumMemberLevel memberLevel;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMemberNo() {
        return memberNo;
    }

    public void setMemberNo(String memberNo) {
        this.memberNo = memberNo;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    //数据库中提取出来的时间数据尾部有.0，这里把.0去掉
    public String getRegisterDate() {
        return registerDate.substring(0,registerDate.length()-2);
    }

    public void setRegisterDate(String registerDate) {
        this.registerDate = registerDate;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public int getLoginCounts() {
        return loginCounts;
    }

    public void setLoginCounts(int loginCounts) {
        this.loginCounts = loginCounts;
    }

    public String getLastLoginDate() {
        return lastLoginDate.substring(0,lastLoginDate.length()-2);
    }

    public void setLastLoginDate(String lastLoginDate) {
        this.lastLoginDate = lastLoginDate;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Enums.EnumMemberLevel getMemberLevel() {
        return memberLevel;
    }

    public void setMemberLevel(Enums.EnumMemberLevel memberLevel) {
        this.memberLevel = memberLevel;
    }
}
